CREATE TABLE [dbo].[TCAMAR_NCPR]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_UNID_CONC] [dbo].[TD_VC_003] NOT NULL,
[NU_AMAR] [dbo].[TD_VC_008] NOT NULL,
[FE_AMAR] [dbo].[TD_DT_001] NOT NULL,
[CO_PROV] [dbo].[TD_VC_020] NOT NULL,
[CO_MONE] [dbo].[TD_VC_003] NOT NULL,
[FA_TIPO_CAMB] [dbo].[TD_NU_015_006] NOT NULL CONSTRAINT [DF__TCAMAR_NC__FA_TI__30F848ED] DEFAULT ((1.000)),
[FA_CAMB_EXTR] [dbo].[TD_NU_015_006] NOT NULL,
[CO_TIPO_OPER] [dbo].[TD_VC_003] NOT NULL,
[DE_OBSE] [dbo].[TD_VC_100] NULL,
[ST_CONT] [dbo].[TD_VC_001] NULL,
[NU_PROC] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TCAMAR_NC__NU_PR__31EC6D26] DEFAULT ((0)),
[TI_SITU] [dbo].[TD_VC_003] NOT NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TCAMAR_NC__CO_US__32E0915F] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TCAMAR_NC__FE_US__33D4B598] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TCAMAR_NC__CO_US__34C8D9D1] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TCAMAR_NC__FE_US__35BCFE0A] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TCAMAR_NCPR] ADD CONSTRAINT [PK__TCAMAR_N__DA2E927F6458BCB9] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_UNID_CONC], [NU_AMAR], [FE_AMAR]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TCAMAR_NCPR] ADD CONSTRAINT [FK__TCAMAR_NC__CO_EM__70747ADB] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
ALTER TABLE [dbo].[TCAMAR_NCPR] ADD CONSTRAINT [FK__TCAMAR_NCPR__71689F14] FOREIGN KEY ([CO_EMPR], [CO_TIPO_OPER]) REFERENCES [dbo].[TTTIPO_OPER] ([CO_EMPR], [CO_TIPO_OPER])
GO
